#include "shm.hpp"

int main()
{
    Shm s;
    s.Create();
    s.Attch();

    char *shm_start = (char *)s.Addr();
    int size = s.Size();
    while (true)
    {
        for (int i = 0; i < size; i++)
        {
            std::cout << shm_start[i] << ' ';
        }
        std::cout << std::endl;
        sleep(1);
    }

    s.Detach();
    s.Delete();

    return 0;
}